<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    
    <div id="root">
        姓: <input type="text" v-model="fristName"> <br>
        名: <input type="text" v-model="lastName"> <br>
        <h1>{{fristName}}-{{lastName}}</h1>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        new Vue({
            el: "#root",
            data() {
                return {
                    fristName: "111",
                    lastName:"san"
                }
            },
            //methods配置事件处理的回调函数
            methods: {
               
            },
        })
    </script>
</body>

</html>